<table>      
  <thead>
    <tr>
      <th>Date</th>
      <th>Event</th>
      <th>Contents</th>
      <th>Store</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{ event.sdate.year }}{{ event.sdate.month }}{{ event.sdate.day }}-{{ event.edate.year }}{{ event.edate.month }}{{ event.edate.day }}</td>
      <td><a href="{{ event.url }}">{{ event.name }}</a></td>
      <td>{{ event.description|safe }} [coupon]</td>
      <td><a href="{{ event.store.url }}">{{ event.store }}</a></td>
    </ul>
  </tbody>
</table>

{% load thumbnail %}

{% thumbnail event.detail "750x450" as im %}
<img src="{{ im.url }}">
{% endthumbnail %}

<div>
<ul>
    {% for c in event.get_coupons %}
    <li>
        {{ c.name }}
    </li>
    {% endfor %}
</ul>
</div>